package com.ruoyi.goods.domain;

import java.util.List;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 规格管理对象 tb_spec
 * 
 * @author ruoyi
 * @date 2024-10-16
 */
public class TbSpec extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 规格编号 */
    private Long id;

    /** 规格名称 */
    @Excel(name = "规格名称")
    private String name;

    private String optionNames;

    /** 规格参数信息 */
    private List<TbSpecOption> tbSpecOptionList;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public List<TbSpecOption> getTbSpecOptionList()
    {
        return tbSpecOptionList;
    }

    public void setTbSpecOptionList(List<TbSpecOption> tbSpecOptionList)
    {
        this.tbSpecOptionList = tbSpecOptionList;
    }

    public String getOptionNames() {
        return optionNames;
    }

    public void setOptionNames(String optionNames) {
        this.optionNames = optionNames;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("tbSpecOptionList", getTbSpecOptionList())
            .toString();
    }
}
